<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page session="false"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:include page="/WEB-INF/pages/header/header.jsp" />
<div class="main-content">
	<div class="main-left">
	<table>
	<s:iterator value="#request['blog']" id="item">
		<tr>
			<td>
				<a href="/blog/view.action?id=<s:property value="#item.id" />" target="_blank">
					<s:property value="#item.title"/>
				</a>
			</td>
			<td>
				<s:property value="#item.posted"/>
			</td>
		</tr>
		<tr>
			<td colspan="2"><s:property escape="0" value="#item.digest"/></td>
		</tr>
	</s:iterator>
	</table>
	<s:if test="#session.logout_url != null">
		<a href="/blog/new.action">新增</a>
	</s:if>
	<s:if test="#session.admin == true && #session.logout_url != null">
		<a href="/manage/blog/category.action">Manage</a>
	</s:if> 
	</div>
	<jsp:include page="/WEB-INF/pages/footer/right.jsp"></jsp:include>
</div>
<jsp:include page="/WEB-INF/pages/footer/footer.jsp" />